import * as process from 'node:process';
const devConfig = {
  redisConfig: {
    host: '116.198.207.154',
    port: 6379,
    // username: process.env.DATABASE_USERNAME,
    password: 'root',
    database: 0,
  },
  mysqlConfig: {
    host: '116.198.207.154',
    port: 5000,
    username: 'root',
    password: '5000',
    database: 'blog',
  },
  captchaConfig: {
    enable: false,
  },
};
const prodConfig = {
  redisConfig: {
    host: '116.198.207.154',
    port: 6379,
    // username: process.env.DATABASE_USERNAME,
    password: 'root',
    database: 'db0',
  },
  mysqlConfig: {
    host: '116.198.207.154',
    port: 5000,
    username: 'root',
    password: 'zjj',
    database: 'blog',
  },
  captchaConfig: {
    enable: false,
  },
};
const config = process.env.NODE_ENV === 'development' ? devConfig : prodConfig;
export default config;
